package ${basePackage}.maker.cli.command;

import java.lang.reflect.Field;
import java.util.concurrent.Callable;

import ${basePackage}.maker.entity.DataModel;

import picocli.CommandLine;

/**
 * @author ${author}
 */
@CommandLine.Command(name = "config", version = "${version}", mixinStandardHelpOptions = true)
public class ConfigCommand implements Callable<Integer> {


    @Override
    public Integer call() {
        Class<DataModel> mainTemplateConfigClass = DataModel.class;
        Field[] declaredFields = mainTemplateConfigClass.getDeclaredFields();
        for (Field declaredField : declaredFields) {
            System.out.println("字段名称：" + declaredField.getName());
            System.out.println("字段类型：" + declaredField.getType());
        }

        return 0;
    }
}